//
//  MDHTableViewController.h
//  MDHPT
//
//  Created by 高得华 on 2019/4/27.
//  Copyright © 2019年 高得华. All rights reserved.
//

#import "MDHViewController.h"
//#import "MDHUITableView.h"
#import "MDHTableViewModel.h"

@class MDHTableView, MDHTableViewCell;

NS_ASSUME_NONNULL_BEGIN

@interface MDHTableViewController : MDHViewController
<
UITableViewDelegate,
UITableViewDataSource
>

/// The table view for tableView controller.
/// tableView
@property (nonatomic, readonly, weak) MDHTableView *tableView;

/// `tableView` 的内容缩进，default is UIEdgeInsetsMake(64,0,0,0)，you can override it
@property (nonatomic, readonly, assign) UIEdgeInsets contentInset;

/// reload tableView data , sub class can override
- (void)reloadData;

/// dequeueReusableCell
- (UITableViewCell *)tableView:(UITableView *)tableView dequeueReusableCellWithIdentifier:(NSString *)identifier forIndexPath:(NSIndexPath *)indexPath;

/// configure cell data
- (void)configureCell:(MDHTableViewCell *)cell atIndexPath:(NSIndexPath *)indexPath withObject:(id)object;

@end

NS_ASSUME_NONNULL_END
